package com.example.feign.fallback;

import com.example.feign.interfaces.TestFeign;
import org.springframework.stereotype.Component;

/**
 * @author yangjianrong
 * @date 2020/7/6 10:01
 **/
@Component
public class TestFeignFallback implements TestFeign {

    /**
     * 每个TestFeign接口中的方法都需要一个错误回调方法。
     */

    @Override
    public String testByFeign() {
        return "error=>testByFeign---one接口发生错误";
    }

    @Override
    public String testOne(String msg) {
        return "error=>testOne---testone接口发生错误";
    }

    @Override
    public String test1() {
         return "error=>test1---test1接口发生错误";
    }


}
